home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000217-20000824
/
000343_news@columbia.edu _Fri Jun 2 16:38:41 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2000-08-23
|
3KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id QAA24330
for <kermit.misc@cpunix.cc.columbia.edu>; Fri, 2 Jun 2000 16:38:41 -0400 (EDT)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA02346
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 2 Jun 2000 16:38:40 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id QAA14075
for kermit.misc@watsun.cc.columbia.edu; Fri, 2 Jun 2000 16:28:42 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: "Alan Rice" <alanrice@bigfoot.com>
Subject: Login garbage
Date: Fri, 2 Jun 2000 16:32:33 -0400
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <sjg664v25ri77@corp.supernews.com>
To: kermit.misc@columbia.edu
Hello Guy's I'm having a simple problem that's been giving me fits.
Some times when a client machine calls into our unix host I get false
positive login's.
What is happening is that the modem seems to get trashed out. instead of
answering with a clean <login: >. It will answer with trash like <RING's
Passwd: >.
I thought I wrote the login script below right to handle this but it's not
working.
I think it's seeing the portion for the login input it's looking for in the
input buffer as < login: RING> and going forward to the password portion.
Now RING is not the only garbage I've seen, There has been CONNECT , LC1,
LC2, ect. I wanted it to look for <login: >.
What am I overlooking? In the Using C-Kermit 2nd Edition on Pg 436, the unix
login script is incomplete. I thought it was just the mod's for the VMS
login script. Did I miss an import concept or piece?
Alan R
Kermit Script
define UNIXLOGIN {
set input timeout proceed
set case on
in 5 {login: }
xif fail {
for \%i 1 3 1 {
out \B\13
in 5 {login: }
if success break
}
if > \%i 3 end 1 No Login Prompt
out \m(clientid)\13
in 5 {\m(clientid)'s Password: }
if fail end 1 No Password Prompt
}
pause 1
out \m(passwd)\13
end 0 Login Successful.
}
define \%j 0 ; call counter
set input echo off
set dial connect auto
call hayes \m(modemdevice) 19200 \m(bmsediphone) 10
if failure end 1 Unsuccesful dialing the number: \m(bmsediphone)
assign \%j \feval(\%j+1) ; increment call count
unixlogin